<template>
  <div id="app">
    <el-container>
      <Header />

      <el-main>
        <div class="main">
          <!-- 路由对应的组件渲染至此 -->
          <router-view></router-view> 
        </div>
      </el-main>

      <el-footer>
        <div class="footer">
          Copyright © 2021.3-2021.4
        </div>
      </el-footer>

    </el-container>
  </div>
</template>

<script>
import Header from '@/components/header';

export default {
  components:{
    Header,
  }
};
</script>

<style>
body{
  background-color: #fae8c8;
  font-size: 12px;
}
.main{
  width: 990px;
  margin: 0 auto;
}
.footer{
  text-align: center;
  height: 42px;
  line-height: 42px;
}
</style>
